package com.linkhub.oms.admin.modules.user.domain.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Description: BasePageParam
 * @Author: echo
 * @Date: 2024/4/25 18:36
 * @Version: 1.0
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class BasePageParam extends BaseUserParam implements Serializable {
    @ApiModelProperty(value = "页数, 从1开始")
    @NotNull(message = "{validation.page.notNull}")
    @Range(min = 1, message = "{validation.page.min}")
    private Integer page;

    @ApiModelProperty(value = "每页大小")
    @NotNull(message = "{validation.pageSize.notNull}")
    private Integer size;
}
